import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";

import { router } from "./router";
import store from "./store";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

import "virtual:windi.css";

import "./permission"

import "nprogress/nprogress.css"

// 导入重置样式css文件
//import "normalize.css";
//import "@/assets/css/base.css";
//import "element-plus/theme-chalk/el-message.css";

// 每次启动时 加载浏览器缓存到vuex中
// store.dispatch("loadLocalStorage");

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(store);
app.use(ElementPlus);
app.use(router);
app.mount("#app");
